import Cookie from 'js-cookie'
const TOKEN_KEY = 'huike_token'

//设置本地存储
export const setToken = (token: string) => {
  Cookie.set(TOKEN_KEY, token)
}
//获取本地token
export const getToken = () => {
  return Cookie.get(TOKEN_KEY)
}
//删除本地token
export const removeToken = () => {
  Cookie.remove(TOKEN_KEY)
}
